Drupal
code snippets (expand me!)
Bash.sh
CSS.css
JavaScript.js
PHP.php
Python.py
Ruby.rb
Scheme.scm
SQL.sql
XML.xml
函数
文件
binary files are OK too.jpg
index.md
Sample HTML document.html
Sample Markdown document.md
/wiki
code snippets (expand me!)
JavaScript.js
// this is a sample snippet taken from the jQuery source: jQuery.fn.extend({ css: function( name, value ) { return jQuery.access( this, function( elem, name, value ) { var styles, len, map = {}, i = 0; if ( jQuery.isArray( name ) ) { styles = getStyles( elem ); len = name.length; for ( ; i < len; i++ ) { map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); } return map; } return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); }, show: function() { return showHide( this, true ); }, hide: function() { return showHide( this ); }, toggle: function( state ) { var bool = typeof state === "boolean"; return this.each(function() { if ( bool ? state : isHidden( this ) ) { jQuery( this ).show(); } else { jQuery( this ).hide(); } }); } });